Skip to content

Add StringName #4169

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

tederis
Copy link
Member

@tederis tederis commented Apr 19, 2025

This PR introduces CStringName class that is intended to optimize the interaction with Lua strings. This is the first PR related to element data optimizations. CStringName represents the idea that already exists in other game engines(FName in UE or StringName in Godot, for example) which in short consists in string caching(or interning). It gives us two benefits: less memory usage and fast operations(such as comparison or hash computation). These two will be intensively used in the next PR entirely dedicated to element data optimizations.

The discussion related to this: #3287 (comment)

tederis added 2 commits April 19, 2025 19:05
Lua based StringName

Use FromStringAndHash

Comments

Enable SharedUtil_Tests
@tederis tederis added the enhancement New feature or request label Apr 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant